<?php

class M_users Extends MY_Model
{

	public function add_users($data)
	{
		$this->load->library('hash');
		$data = (object)$data;
		$input['employee_username'] = $data->username;
		$input['employee_password'] = Hash::make($data->password);
		$input['created_at'] = NOW;
		$input['login_status'] = 1; 
		$input['login_role'] = 'hrd' ;

		$this->db->insert(parent::$usr_table,$input);
		return $this->db->affected_rows() >=1 ? TRUE : FALSE;
	
	
	}










}